package com.huan.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

@FeignClient("my-account")
public interface AccountFeignApi {
    @GetMapping("/decrease/{userId}/{money}")
    public String decrease(@PathVariable("userId") Long userId, @PathVariable("money") BigDecimal money);
}
